#include <iostream>
#include <cmath>
using namespace std;
int main()
{
    double a,b,c;
    cout<<"enter coefficiants a b c: ";
    cin>>a>>b>>c;
    int rootcount= 0;
    if(fabs(a)<1e-10)
    {
        cout<<"The shigeng is 0; please re-enter.";
        cout<<endl;
    } 
    else
    {
        double delta = b*b-4*a*c;
        if(fabs(delta)<1e-12)
        {
            rootcount=1;
        }    
        else if (delta>0)
        {
            rootcount=2;
        }    
        else if(delta<0)
        {
            rootcount=0;
        }    
    }
    cout<<"the number of roots is "<<rootcount<<endl;
    
    return 10;
}

